home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
perl
/
msds-prl
/
ptchds19.zoo
/
chdir_c
< prev
next >
Wrap
Text File
|
1992-02-23
|
1KB
|
40 lines
MS-DOS patches to perl.
Apply this patch to the standard perl source, version 4, patch level 19,
using "patch -p." Do this in the root directory of the perl source
distribution.
You can cat all these patches together and pipe the output to patch -p.
Len Reed
Holos Software, Inc.
..!gatech!holos0!lbr
holos0!lbr@gatech.edu
--------------------------------------
*** msdos/chdir.c.old Fri Jun 14 20:08:58 1991
--- msdos/chdir.c Thu Nov 14 08:56:48 1991
***************
*** 10,18 ****
* A "DOS-aware" chdir() function, that will change current drive as well.
*
* chdir( "B:" ) -- changes to the default directory, on drive B:
! * chdir( "C:\FOO" ) changes to the specified directory, on drive C:
! * chdir( "\BAR" ) changes to the specified directory on the current
* drive.
*/
#include <stdlib.h>
--- 10,22 ----
* A "DOS-aware" chdir() function, that will change current drive as well.
*
* chdir( "B:" ) -- changes to the default directory, on drive B:
! * chdir( "C:/FOO" ) changes to the specified directory, on drive C:
! * chdir( "/BAR" ) changes to the specified directory on the current
* drive.
+ *
+ * Note the use of / instead of \. Perl, like most C programs on DOS, is
+ * happy with /. Use of \ works, but it's messy since perl will often
+ * interpret it as an escape character. E.g., "c:\new" has an embedded '\n'!
*/
#include <stdlib.h>